package cn.net.yato.picture.entity.relationship;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @ClassName ImgAndType
 * @Description 图片类型关系
 * @Author yato
 * @Date 2020/2/17 13:30
 * @Version 1.0
 */
@Data
@TableName(value = "img_type")
public class ImgAndType {
    /**
     * 自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private long id;
    /**
     * 图片id
     */
    @TableField(value = "imgId")
    private String imgId;
    /**
     * 图片类型id
     */
    @TableField(value = "imgTypeId")
    private String imgTypeId;

    public ImgAndType() {
    }

    public ImgAndType(long id, String imgId, String imgTypeId) {
        this.id = id;
        this.imgId = imgId;
        this.imgTypeId = imgTypeId;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getImgId() {
        return imgId;
    }

    public void setImgId(String imgId) {
        this.imgId = imgId;
    }

    public String getImgTypeId() {
        return imgTypeId;
    }

    public void setImgTypeId(String imgTypeId) {
        this.imgTypeId = imgTypeId;
    }
}
